.class Lcom/instagram/android/maps/m;
.super Ljava/lang/Object;
.source "PhotoMapsActivity.java"

# interfaces
.implements Lcom/instagram/android/maps/e/e;


# instance fields
.field final synthetic a:Lcom/instagram/android/maps/PhotoMapsActivity;


# direct methods
.method constructor <init>(Lcom/instagram/android/maps/PhotoMapsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 647
    iput-object p1, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Z)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 650
    const-string v0, "PhotoMapsActivity"

    const-string v1, "MODE CHANGE!"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 651
    if-eqz p1, :cond_2

    .line 652
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/maps/ui/ak;

    if-nez v0, :cond_1

    .line 653
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/maps/ui/ak;

    invoke-direct {v1}, Lcom/instagram/android/maps/ui/ak;-><init>()V

    invoke-interface {v0, v2, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 663
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->o(Lcom/instagram/android/maps/PhotoMapsActivity;)V

    .line 664
    return-void

    .line 656
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 657
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/maps/ui/ak;

    if-eqz v0, :cond_1

    .line 658
    iget-object v0, p0, Lcom/instagram/android/maps/m;->a:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v0}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/maps/ui/n;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_0
.end method
